package com.stepforward.me;

import android.app.Activity;
import android.os.Bundle;
import android.widget.EditText;
import android.widget.TextView;



public class detail extends Activity{
	 public void onCreate(Bundle icicle) {
	        super.onCreate(icicle);
	        // ToDo add your GUI initialization code here

	        setContentView(R.layout.triptext);
	        Bundle extras = getIntent().getExtras();			 
		   
		    String departure="Ellsworth ave at aiken ave";//extras.getString("departure" );
		    String arrival="5th ave at morewood";//extras.getString("arrival");
		    String month="4";//extras.getString("month");
		    String day="26";//extras.getString("day");
		    String year="2011";//extras.getString("year");
		    String hour="4";//extras.getString("hour");
		    String minute="30";extras.getString("minute");
		    String pm="pm";//extras.getString("pm");
		    
		    Route r = new Route();
		    try {
		    	//r.getRoute(departure, arrival, month, day, year, hour, minute, pm);
		    	r.getRoute("Ellsworth ave at aiken ave", "5th ave at morewood",
						"4", "26", "2011", "19", "32", "pm");
		    	
				    //editText.setText("a");
				 //  editText.setText(r.getItineraries().toString());
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			TextView editText = (TextView)findViewById(R.id.testa);
		    //editText.setText("a");
		   editText.setText(r.getItineraries().toString());
		    
		  
}
}
